package com.ruoyi.project.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 农田服务订单对象 business_farm_server_order
 * 
 * @author ruoyi
 * @date 2020-10-22
 */
public class BusinessFarmServiceOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 农场服务订单ID */
    private Long id;

    /** 下单人ID */
    @Excel(name = "下单人ID")
    private Long userId;

    /** 土地ID */
    @Excel(name = "土地ID")
    private Long areaId;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal amount;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderCode;

    /** 支付状态(0:未支付 1 已支付) */
    @Excel(name = "支付状态(0:未支付 1 已支付)")
    private Long payStatus;

    /** 支付代码 */
    @Excel(name = "支付代码")
    private String transactionId;

    /** 操作师傅 */
    @Excel(name = "操作师傅")
    private String operator;

    /** 操作状态(0 :未完成 1已完成) */
    @Excel(name = "操作状态(0 :未完成 1已完成)")
    private Integer operationStatus;

    /** 1支付宝 2微信 */
    @Excel(name = "1支付宝 2微信")
    private Long payType;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    private Date gmtEnd;


    private String nickname;

    private String areaCode;

    private String areaName;

    private String seedId;

    private String seedName;

    private Long serviceId;
    //服务类型(1:翻土 2:播种 3 施肥 4 浇水 5 除虫除草 6收割)
    private Long type;

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Long getServiceId() {
        return serviceId;
    }

    public void setServiceId(Long serviceId) {
        this.serviceId = serviceId;
    }

    public String getSeedId() {
        return seedId;
    }

    public void setSeedId(String seedId) {
        this.seedId = seedId;
    }

    public String getSeedName() {
        return seedName;
    }

    public void setSeedName(String seedName) {
        this.seedName = seedName;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setOrderCode(String orderCode) 
    {
        this.orderCode = orderCode;
    }

    public String getOrderCode() 
    {
        return orderCode;
    }
    public void setPayStatus(Long payStatus) 
    {
        this.payStatus = payStatus;
    }

    public Long getPayStatus() 
    {
        return payStatus;
    }
    public void setTransactionId(String transactionId) 
    {
        this.transactionId = transactionId;
    }

    public String getTransactionId() 
    {
        return transactionId;
    }
    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }
    public void setOperationStatus(Integer operationStatus) 
    {
        this.operationStatus = operationStatus;
    }

    public Integer getOperationStatus() 
    {
        return operationStatus;
    }
    public void setPayType(Long payType) 
    {
        this.payType = payType;
    }

    public Long getPayType() 
    {
        return payType;
    }
    public void setGmtEnd(Date gmtEnd) 
    {
        this.gmtEnd = gmtEnd;
    }

    public Date getGmtEnd() 
    {
        return gmtEnd;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("areaId", getAreaId())
            .append("amount", getAmount())
            .append("orderCode", getOrderCode())
            .append("payStatus", getPayStatus())
            .append("transactionId", getTransactionId())
            .append("operator", getOperator())
            .append("operationStatus", getOperationStatus())
            .append("payType", getPayType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("gmtEnd", getGmtEnd())
            .toString();
    }
}